package com.geeksaga.service;

import java.util.Map;

import org.springframework.dao.DataAccessException;

import com.geeksaga.domain.TableRowCount;

/**
 * @author newbie
 * @since 0.1
 */
public interface TableRowCountService {
    
    /**
     * @param tableRowCount
     * @return
     * @throws DataAccessException
     */
    public int plusRowCount(TableRowCount tableRowCount) throws DataAccessException;
    
    /**
     * @param tableRowCount
     * @return
     * @throws DataAccessException
     */
    public int minusRowCount(TableRowCount tableRowCount) throws DataAccessException;
    
    /**
     * @param tableRowCount
     * @return
     * @throws DataAccessException
     */
    public TableRowCount addTableRowCountDao(TableRowCount tableRowCount) throws DataAccessException;
    
    /**
     * @param parameter
     * @param table
     * @return
     * @throws DataAccessException
     */
    public TableRowCount count(Map<String, Object> parameter, String table) throws DataAccessException;
}